package com.cm.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Person {

    @NotBlank(message = "不能为空")
    private String name;

    private int age;

    @NotBlank(message = "不能为空")
    private String field1;
    @NotBlank(message = "不能为空")
    private String field2;
    @NotBlank(message = "不能为空")
    private String field3;
    @NotBlank(message = "不能为空")
    private String field4;
    @NotBlank(message = "不能为空")
    private String field5;

}
